package com.example.mqtt.conntroller;

import com.example.mqtt.service.impl.SmsServiceImpl;
import jakarta.websocket.server.PathParam;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2025/5/3 21:56
 **/
@RestController
@RequestMapping("/api/test")
@RequiredArgsConstructor
public class TestController {

    private final SmsServiceImpl smsService;

    @GetMapping("/sendSms")
    public void sendSms(@PathParam("phone") String phone) {
        smsService.sendMessage(phone);
    }
}
